package com.visionet.school.app.web.entity.dynamic;

import com.visionet.school.app.web.entity.IdEntity;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;

/**
 * Created by hxpeng on 2017/4/21.
 */

@Entity
@Table(name = "t_dynamic")
public class Dynamic extends IdEntity{

    @NotNull
    private String memberId;

    @NotNull
    private String studentName;

    @NotNull
    private String memberName;

    @NotNull
    private String memberType;

    @NotNull
    private String memberAvatarPath;

    @NotNull
    private String classId;

    private String memberRemark;

    @NotNull
    private String title;

    //标签
    private String tags;

    //点赞
    private Integer likes;

    //评论数量
    private Integer comments;

    //置顶
    private Integer onTop;

    //精帖
    private String essence;

    //动态列表显示缩略图路径集合，用;分隔，最多保存三/四个路径
    private String thumbnail;

    private String dynamicContentId;


    public String getMemberId() {
        return memberId;
    }

    public void setMemberId(String memberId) {
        this.memberId = memberId;
    }

    public String getStudentName() {
        return studentName;
    }

    public void setStudentName(String studentName) {
        this.studentName = studentName;
    }

    public String getMemberName() {
        return memberName;
    }

    public void setMemberName(String memberName) {
        this.memberName = memberName;
    }

    public String getMemberType() {
        return memberType;
    }

    public void setMemberType(String memberType) {
        this.memberType = memberType;
    }

    public String getMemberAvatarPath() {
        return memberAvatarPath;
    }

    public void setMemberAvatarPath(String memberAvatarPath) {
        this.memberAvatarPath = memberAvatarPath;
    }

    public String getClassId() {
        return classId;
    }

    public void setClassId(String classId) {
        this.classId = classId;
    }

    public String getMemberRemark() {
        return memberRemark;
    }

    public void setMemberRemark(String memberRemark) {
        this.memberRemark = memberRemark;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getTags() {
        return tags;
    }

    public void setTags(String tags) {
        this.tags = tags;
    }

    public Integer getLikes() {
        return likes;
    }

    public void setLikes(Integer likes) {
        this.likes = likes;
    }

    public Integer getComments() {
        return comments;
    }

    public void setComments(Integer comments) {
        this.comments = comments;
    }

    public Integer getOnTop() {
        return onTop;
    }

    public void setOnTop(Integer onTop) {
        this.onTop = onTop;
    }

    public String getEssence() {
        return essence;
    }

    public void setEssence(String essence) {
        this.essence = essence;
    }

    public String getThumbnail() {
        return thumbnail;
    }

    public void setThumbnail(String thumbnail) {
        this.thumbnail = thumbnail;
    }

    public String getDynamicContentId() {
        return dynamicContentId;
    }

    public void setDynamicContentId(String dynamicContentId) {
        this.dynamicContentId = dynamicContentId;
    }
}
